//
//  ControlUtil.h
//  cherryPicker
//
//  Created by thPark on 12. 1. 1..
//  Copyright 2012 kai1945. All rights reserved.
//

#import <Foundation/Foundation.h>

typedef enum {
	ALERT_STATE_ERROR = 0,		// 에러 
	ALERT_STATE_SUCCESS,		// 성공
}AlertState;


@interface ControlUtil : NSObject{

}

+ (UIColor *)colorWithHexString:(NSString *)hex;
+ (BOOL)point:(CGPoint)point inRect:(CGRect)rect;

+ (void)showAlertCaution:(NSString*)title body:(NSString*)body btn:(NSString*)btn delegate:(id)del tag:(int)tag;
+ (void)showAlertCaution:(NSString*)title body:(NSString*)body delegate:(id)del tag:(int)tag;
+ (void)showAlertConform:(NSString*)title body:(NSString*)body delegate:(id)del tag:(int)tag;
+ (void)showAlertConform:(NSString*)title body:(NSString*)body lBtn:(NSString*)lBtn rBtn:(NSString*)rBtn delegate:(id)del tag:(int)tag;

+ (void)showAlertCaution:(NSString*)title body:(NSString*)body btn:(NSString*)btn delegate:(id)del;
+ (void)showAlertCaution:(NSString*)title body:(NSString*)body delegate:(id)del;
+ (void)showAlertConform:(NSString*)title body:(NSString*)body delegate:(id)del;

+ (void)showAlertProgress:(NSString*)title body:(NSString*)body delegate:(id)del;
+ (void)hideAlertProgress;

+ (void)alertOk:(NSString *)title message:(NSString *)message;
+ (void)alertYesNo:(NSString *)title message:(NSString *)message delegate:(id<UIAlertViewDelegate>)delegate;
+ (void)alertYesNoWithText:(NSString *)title message:(NSString *)message delegate:(id<UIAlertViewDelegate>)delegate yesText:(NSString *)yesText noText:(NSString *)noText;

+ (void)showAlertEdit:(NSString*)title hint:(NSString*)hint delegate:(id)del;
+ (void)showAlertEdit:(NSString*)title hint:(NSString*)hint delegate:(id)del textDel:(id)textDel tag:(int)tag;


@end
